<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <my-content></my-content>
    <my-footer></my-footer>
  </div>
</body>
<template id="content">
  <div>
    内容
  </div>
</template>
<template id="footer">
  <ul>
    <li>首页</li>
    <li>分类</li>
    <li>购物车</li>
    <li>我的</li>
  </ul>
</template>
<script src="vue.js"></script>
<script>
  const Content = {
    template: '#content'
  } 
  const Footer = {
    template: '#footer'
  }

  new Vue({
    el: '#app',
    components: {
      'my-content': Content,
      'my-footer': Footer
    }
  })
</script>
</html>